<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@page import="com.hz.control.UserControl"%>
<%@page import="com.hz.model.User"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>重置星级</title>
</head>
<body>
 <%
         User cu = (User)request.getSession().getAttribute("user");
        if(cu!=null&&cu.getRole()>0){
          if(UserControl.LevelReset()){
              %>
              <script>
              alert("重置成功");
              parent.location.href="../../volunteer/pages/admin.jsp"
              </script>
              <%
          }else{
              %>
              <script>
              alert("重置失败");
              history.go(-1);
              </script>
              <%
          }
        }
 %>
</body>
</html>